import request from '@/utils/request'

// 查询Sprint列表
export function listSprint(query) {
  return request({
    url: '/project/sprint/list',
    method: 'get',
    params: query
  })
}

// 查询Sprint详细
export function getSprint(sprintId) {
  return request({
    url: '/project/sprint/' + sprintId,
    method: 'get'
  })
}

// 新增Sprint
export function addSprint(data) {
  return request({
    url: '/project/sprint',
    method: 'post',
    data: data
  })
}

// 修改Sprint
export function updateSprint(data) {
  return request({
    url: '/project/sprint',
    method: 'put',
    data: data
  })
}

// 删除Sprint
export function delSprint(sprintId) {
  return request({
    url: '/project/sprint/' + sprintId,
    method: 'delete'
  })
}
